package com.tansuo365.test1.service.kucunservice.kucunimpl;

import com.tansuo365.test1.bean.kucunbean.PosunDetails;
import com.tansuo365.test1.bean.kucunbean.PosunZong;
import com.tansuo365.test1.mapper.kucunmapper.PosunDetailsMapper;
import com.tansuo365.test1.service.kucunservice.PosunDetailsService;
import com.tansuo365.test1.service.kucunservice.PosunZongService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PosunDetailsServiceImpl implements PosunDetailsService {

    @Resource
    private PosunDetailsMapper posunDetailsMapper;

    @Override
    public List<PosunDetails> listPosunDetailsByZongId(Integer zongzhangid) {
        return posunDetailsMapper.listPosunDetailsByZongId(zongzhangid);
    }

    @Override
    public List<PosunDetails> listPosunDetailsSelective(PosunDetails posunDetails) {
        return posunDetailsMapper.listPosunDetailsSelective(posunDetails);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return posunDetailsMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int deleteByZongId(Integer zongzhangid) {
        return posunDetailsMapper.deleteByZongId(zongzhangid);
    }

    @Override
    public int deleteByZongIdArr(Integer[] ids) {
        return posunDetailsMapper.deleteByZongIdArr(ids);
    }

    @Override
    public int insertSelective(PosunDetails posunDetails) {
        return posunDetailsMapper.insertSelective(posunDetails);
    }

    @Override
    public PosunDetails selectByPrimaryKey(Integer id) {
        return posunDetailsMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(PosunDetails posunDetails) {
        return posunDetailsMapper.updateByPrimaryKeySelective(posunDetails);
    }
}
